.saves {
  box-sizing: border-box;
  position: relative;

  --controls-height: 55px;
  --labels-height: 48px;
  --padding: 20px;
}

.saves__none {
  width: 100%;
  height: calc(100vh - var(--controls-height));
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: GamePocket;
  font-smooth: never;
  -webkit-font-smoothing: none;
  text-align: center;
  line-height: 45px;
}

.saves__list {
  padding: var(--padding);
  overflow: auto;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.saves__item {
  padding: var(--padding);
  border-radius: 15px;
  background-color: var(--info-colour);
  display: grid;
  gap: var(--padding);
  align-items: center;
  grid-template-columns: 1fr max-content max-content;
  grid-template-areas:
    "b r c"
    "d r c";
}

.saves__item--not-found {
  cursor: unset;
}

.saves__item-path {
  grid-area: b;
  word-break: break-all;
}

.saves__info {
  grid-area: d;
}

.saves__item-remove-button {
  grid-area: r;
  cursor: pointer;
  color: var(--red-colour);

  &:hover {
    text-decoration: underline;
  }
}

.saves__item-restore-button {
  grid-area: c;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.25rem;
  cursor: pointer;

  &::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    flex-grow: 0;
    flex-shrink: 0;
    transform: rotate(45deg);
  }

  &:hover {
    transform: scale(1.1);
  }
}

.saves__info-save-files-timestamps {
  position: sticky;
  top: var(--controls-height);
  background-color: var(--info-colour);
  padding: 0 var(--padding);
}

.saves__info-timestamp {
  text-align: center;
}

.saves__info-save-files-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: calc(100vh);
  display: grid;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: -1;
}

.saves__info-save-files-background-column {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;

  &::after {
    content: "";
    opacity: 0.25;
    width: 3px;
    height: 100%;
    background-color: var(--light-colour);
    display: block;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }
}

.saves__info-save-files {
  padding: var(--padding);
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saves__info-save-file-path {
  font-size: 1rem;
  padding: 5px var(--padding);
}

.saves__info-save-file-versions {
  display: grid;
}

.saves__info-save-file-version {
  padding: 5px 10px;
  background-color: var(--light-colour);
  border-radius: 5px;
  text-align: center;
}

.saves__info-save-file-version--other {
  cursor: pointer;

  &:hover {
    background-color: var(--green-colour);
  }
}

.saves__info-save-files-platform {
  position: sticky;
  top: calc(var(--controls-height) + var(--labels-height));
  background-color: var(--hover-colour);
  padding: 10px 20px;
}
